﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AncientLand.Service.Entity;

namespace AncientLand.Service.IBiz
{
   public interface IPhotosBiz
    {
        IEnumerable<Photos> GetAll();
        Photos GetById(int id);
        void Create(Photos item);
        void Update(Photos item);
        void Delete(int id);
        void Save();
        IEnumerable<WeddingPhoto> GetWeddingPhotoByPages(out int totalRecord, int? pageIndex = 1, int? pageSize = 10, string orderFiled = "ID");
        IEnumerable<PictorialPhoto> GetPictorialPhotoByPages(out int totalRecord, int? pageIndex = 1, int? pageSize = 10, string orderFiled = "ID");

        IEnumerable<Photos> GetItemsByPagesForHomePage( int? pageIndex = 1, int? pageSize = 10);
        IEnumerable<Photos> GetItemsByPagesForHomePage(out int totalRecord, int? pageIndex = 1, int? pageSize = 10);
    }
}
